﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>jQuery Object Accessors</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document.body).click(function() {
            $("div").each(function(i) {
                if (this.style.color != "blue") {
                    this.style.color = "blue";
                } else {
                    this.style.color = "";
                }
            });
        }); 
    </script>
</head>
<body>
    <div>Click here</div> 

    <div>to iterate through</div> 
    <div>these divs.</div>
</body>
</html>
